<?php

use Phinx\Migration\AbstractMigration;

class AddColumnParamInReviewRequestNodeTable extends AbstractMigration
{
    public function up()
    {
        $this->table("review_request_node")
            ->addColumn("param", "json", [
                'null' => true,
                'comment' => "审核额外参数",
            ])
            ->save();
    }

    public function down()
    {
        $this->table("review_request_node")
            ->removeColumn("param")
            ->save();
    }
}
